﻿using System;
using Newtonsoft.Json;
using ProjScan.Tools;

namespace ProjScan.Config
{
	// Token: 0x02000323 RID: 803
	public struct ScanAssetsConfig
	{
		// Token: 0x060012CF RID: 4815 RVA: 0x00059F3C File Offset: 0x0005813C
		public override string ToString()
		{
			string text = ToolsHelper.QuoteString(this.assetPath) + ",";
			string text2 = text;
			bool flag = this.thresholds != null;
			if (flag)
			{
				for (int i = 0; i < this.thresholds.Length; i++)
				{
					text2 += this.thresholds[i];
					bool flag2 = i < this.thresholds.Length - 1;
					if (flag2)
					{
						text2 += "|";
					}
				}
				text2 += ",";
			}
			string text3 = text2;
			bool flag3 = this.thresholds != null && this.thresholds.Length != 0;
			int num;
			if (flag3)
			{
				string str = text3;
				num = (int)this.priority;
				text3 = str + num.ToString();
			}
			string str2 = text3;
			string str3 = ",";
			num = (int)this.matchingType;
			return str2 + str3 + num.ToString();
		}

		// Token: 0x04000B30 RID: 2864
		[JsonProperty("matching_str")]
		public string assetPath;

		// Token: 0x04000B31 RID: 2865
		public string[] thresholds;

		// Token: 0x04000B32 RID: 2866
		public ThresholdPriority priority;

		// Token: 0x04000B33 RID: 2867
		[JsonProperty("matching_type")]
		public MatchingType matchingType;
	}
}
